package org.luxor.commons.core.utils;

/**
 * 字符串工具类
 *
 * @author xiaoleilua
 */
public class StrKit {
    public static final String CHARSET_NAME = "UTF-8";
    public static final String EMPTY = "";

    /**
     * none
     */
    public static final String NONE = "none";

    /**
     * 空格
     */
    public static final String SPACE = " ";

    /**
     * @ 符
     */
    public static final String AT = "@";

    /**
     * 星号 *
     */
    public static final String ASTERISK = "*";

    /**
     * 问号 ?
     */
    public static final String QUESTION = "?";
    public static final String QUESTION_URL = "%3D1";

    /**
     * 逗号 ,
     */
    public static final String COMMA = ",";

    /**
     * 点 .
     */
    public static final String DOT = ".";
    public static final String DOT_REGEX = "\\.";

    /**
     * 美元符 $
     */
    public static final String DOLLAR = "$";

    /**
     * 与符号 &
     */
    public static final String WITH = "&";

    /**
     * 等于 =
     */
    public static final String EQUAL = "=";

    /**
     * 大于 >
     */
    public static final String GREATER_THAN = ">";

    /**
     * 小于 <
     */
    public static final String LESS_THAN = "<";

    /**
     * 冒号 :
     */
    public static final String COLON = ":";
    public static final String COLON_REGEX = "\\:";

    /**
     * 分号 ;
     */
    public static final String SEMI_COLON = ";";

    /**
     * 竖线 |
     */
    public static final String VERTICAL = "|";
    public static final String VERTICAL_REGEX = "\\|";

    /**
     * 右斜线 \
     */
    public static final String RIGHT_SLASH = "\\";

    /**
     * 左斜线 /
     */
    public static final String SLASH = "/";
    public static final String SLASH_DUAL = "//";
    public static final String SLASH_URL = "%2F";

    /**
     * 下划线 _
     */
    public static final String UNDERLINE = "_";

    /**
     * 中横线 -
     */
    public static final String DASH = "-";

    public static final String HTML_NBSP = "&nbsp;";
    public static final String HTML_AMP = "&amp";
    public static final String HTML_QUOTE = "&quot;";
    public static final String HTML_LT = "&lt;";
    public static final String HTML_GT = "&gt;";

    public static final String EMPTY_JSON = "{}";

    /**
     * 换行符
     */
    public static final String CRLF = "\r\n";
    public static final String NEWLINE = "\n";

    /**
     * 协议头
     */
    public static final String HTTPS = "https";
    public static final String HTTPS_PROTOCOL = "https://";
    public static final String HTTP = "http";
    public static final String HTTP_PROTOCOL = "http://";
    public static final String TCP = "tcp";
    public static final String TCP_PROTOCOL = "tcp://";
    public static final String UDP = "udp";
    public static final String UDP_PROTOCOL = "udp://";

}
